package com.jiuyin.dianjing.api.constant;

import com.jiuyin.dianjing.BuildConfig;
import com.jiuyin.dianjing.api.enums.ApiEnum;

/**
 * Description:
 * File: ApiConstant.java
 * Author: liujun
 * Create: 2019/7/8 0008 下午 13:27
 */
public class ApiConstant {
    /**
     * 返回成功
     */
    public static final int RESULT_OK = 200;

    /**
     * 返回失败
     */
    public static final int RESULT_FAIL = 500;

    /**
     * 没有数据
     */
    public static final int RESULT_NO_DATA = 504;
    /**
     * 重新登录
     */
    public static final int RESULT_RE_LOGIN = 505;
    /**
     * 网络请求时间
     */
    public static final int DEFAULT_TIMEOUT = 10;
    /**
     * 分页默认开始的页码
     */
    public static final int PAGE_FIRST = 1;

    /**
     * 一页10条
     */
    public static final int PAGE_NUM = 10;
    public static final int PAGE_MESSAGE_NUM = 20;
    public static final String KEY_USERID = "userId";
    public static final String KEY_TOKEN = "token";
    public static final String KEY_LINEUP = "lineup";
    public static final String KEY_NICK_NAME = "nickname";
    public static final String KEY_PASSWORD = "password";
    public static final String KEY_PASSWORD_PREV = "passwordPrev";
    public static final String KEY_NATION_CODE = "nationcode";
    public static final String KEY_CHECK_CODE = "checkCode";
    public static final String KEY_CODE = "code";
    public static final String KEY_URL = "url";
    public static final String KEY_SEARCH = "search";
    public static final String KEY_INFORMATIONID = "informationId";
    public static final String KEY_NUM = "num";
    public static final String KEY_PAGE_NUM = "pagenum";
    public static final String KEY_GAMEID = "gameId";
    public static final String KEY_GAMENAME = "gameName";
    public static final String KEY_TEAMID = "teamId";
    public static final String KEY_TYPE = "type";
    public static final String KEY_IMG_ID = "img_id";
    public static final String KEY_WORD = "word";
    public static final String KEY_COMPETITIONID = "competitionId";
    public static final String KEY_COMPETITITON_ID = "competititon_id";
    public static final String VALUE_TYPE0 = "0";
    public static final String VALUE_TYPE1 = "1";
    public static final String KEY_UNIVERSITY_ID = "university_id";
    public static final String KEY_ADVERTISING_LINK = "advertising_link";

    public static final String KEY_TEAM_LIST = "teamList";
    public static final String KEY_SYSTEM_TYPE = "system_type";
    public static final String VALUE_ANDROID = "android";
    /**
     * 赛事类型（0 全部比赛 1 我参加的 2 我创建的）
     */
    public static final String KEY_MY_MATCH = "0";
    public static final String KEY_MY_MATCH1 = "1";
    public static final String KEY_MY_MATCH2 = "2";
    /**
     * 申请列表
     */
    public static final String KEY_APPLY_LIST = "apply_list";
    /**
     * 申请加入赛事主键
     */
    public static final String KEY_APPLY_FOR_ID = "applyfor_id";
    public static final String KEY_STATUS = "status";

    public static final String KEY_TEAMS_ID = "teamId";

    //主办方
    public static final String KEY_SPONSOR = "sponsor";
    //通知群
    public static final String KEY_FLOCK = "flock";
    //游戏策略
    public static final String KEY_GAME_RULE = "game_rule";

    //赛事策划
    public static final String KEY_SCHEME = "scheme";

    //主办方手机号
    public static final String KEY_MOBILE = "mobile";

    //奖金规则
    public static final String KEY_BONUS_RULE = "bonus_rule";

    //比赛简介
    public static final String KEY_INTRO = "intro";

    //比赛名称
    public static final String KEY_NAME = "name";

    //比赛时间
    public static final String KEY_TIME = "time";

    //宣传效果
    public static final String KEY_PUBLICITY = "publicity";

    //负责人名字
    public static final String KEY_SPONSOR_NAME = "sponsorName";

    //招募数
    public static final String KEY_JOINNUM = "joinNum";

    //赛事类型（0高校赛 1 城市赛 2 公开赛）
    public static final String KEY_SCOPE = "scope";
    //举办方式 （ 0个人举办 1 需要赞助
    public static final String KEY_ISSPONSOR = "issponsor";
    //参赛方式（0个人 1 团队）
    public static final String KEY_TACTICS = "tactics";
    public static final String KEY_EVENT_DATA_LIST = "eventDataList";
    public static final String KEY_COMPET_SINGLE_DATA_ID = "competsingledata_id";
    public static final String KEY_RECORD_LIST = "recordList";

    public static final String KEY_GRADE = "grade";
    public static final String KEY_RECORD_KEEP_ID = "recordkeep_id";

    public static final String KEY_STAGE = "stage";
    public static final String KEY_RACE = "race";

    public static final String KEY_COMPETITION_ID = "competition_id";

    public static final String KEY_POST = "post";
    /**
     * 报名开始时间
     */
    public static final String KEY_REGISTRATION_BEGANTIME = "registration_begantime";
    /**
     * 报名结束时间
     */
    public static final String KEY_REGISTRATION_ENDTIME = "registration_endtime";
    /**
     * 比赛开始时间
     */
    public static final String KEY_COMPETE_BEGINTIME = "compete_begintime";
    /**
     * 比赛结束时间
     */
    public static final String KEY_COMPETE_ENDTIME = "compete_endtime";
    /**
     * 比赛地点
     */
    public static final String KEY_ADDRESS = "address";

    public static final String KEY_COMPET = "compet";

    /**
     * 在战队中的职位(0 队长 1 管理 2 成员 3未加入)
     */
    public static final String KEY_PART = "part";

    /**
     * 输入内容关键字
     */
    public static final String KEY_ANTISTOP = "antistop";


    /**
     * 资讯
     */
    public static final String VALUE_SEARCH_TYPE_INFO = "1";
    /**
     * 赛事
     */
    public static final String VALUE_SEARCH_TYPE_MATCH = "2";
    /**
     * 资讯热门
     */
    public static final String VALUE_TYPE_HOT = "0";
    /**
     * 资讯关注
     */
    public static final String VALUE_TYPE_ATTENTION = "1";
    /***
     * 全部
     */
    public static final String VALUE_GENRE_NORMAL = "0";
    /***
     * 高校电竞社
     */
    public static final String VALUE_GENRE_COLLEGES = "1";
    /***
     * 线上俱乐部
     */
    public static final String VALUE_GENRE_ONLINE = "2";
    /***
     * 都市网咖
     */
    public static final String VALUE_GENRE_BAR = "3";

    /**
     * 创建比赛
     * 获取游戏列表
     */
    public static final String VALUE_MATCH_TYPE_CREATE = "0";

    /**
     * 创建比赛
     * 获取游戏列表
     */
    public static final String VALUE_MATCH_TYPE_MY_MATCH = "1";
    /**
     * 我的赛事
     * 获取游戏列表
     */
    public static final String VALUE_MATCH_TYPE_MY = "2";
    /**
     * 队长
     */
    public static final int VALUE_PART_CAPTION = 0;
    /**
     * 管理员
     */
    public static final int VALUE_PART_MANAGER = 1;
    /**
     * 成员
     */
    public static final int VALUE_PART_MEMBER = 2;
    /**
     * 未加入
     */
    public static final int VALUE_PART_NOT_JOIN = 3;

    /**
     * 点赞
     */
    public static final String LIKE_OK = "1";
    /**
     * 没有点赞
     */
    public static final String LIKE_NOT_OK = "0";
    /**
     * 信息主键
     */
    public static final String KEY_INFORM_LIST = "informList";
    public static final String KEY_COMMENT_LIST = "commentList";
    public static final String KEY_INFOR_COMMENT = "inforComment";

    public static final String KEY_INFORMATION_ID = "information_id";
    public static final String KEY_COMMENT_NUM = "commentNum";
    public static final String KEY_CREATE_TIME = "create_time";
    public static final String KEY_HEAD_URL = "headurl";
    public static final String KEY_TITLE = "title";
    public static final String KEY_USER_ID = "user_id";
    public static final String KEY_HEADER = "header";
    public static final String KEY_CLICK_NUM = "clickNum";
    public static final String KEY_CLICK_NUM1 = "click_num";
    public static final String KEY_ACCOUNT = "account";
    public static final String KEY_THUMB = "thumb";
    public static final String KEY_INFORMATION_COMMENT_ID = "informationcomment_id";
    public static final String KEY_THUMB_NUM = "thumbNum";
    public static final String KEY_CONTENT = "content";
    public static final String KEY_TARGETID = "targetId";
    public static final String KEY_SRC_LIST = "srcList";
    public static final String KEY_SRC = "src";
    public static final String KEY_DOWN_URL = "down_url";
    public static final String KEY_GAME_LIST = "gameList";
    public static final String KEY_NEWS_LIST = "newsList";
    public static final String KEY_COMPETE_DATA_LIST = "competeDataList";
    public static final String KEY_GAME_ID = "game_id";
    public static final String KEY_LOGO = "logo";
    public static final String KEY_WORDS = "words";
    public static final String KEY_ANTISTOP_LIST = "antistopList";
    public static final String KEY_COMPETELIST = "competeList";
    public static final String KEY_USER = "user";
    public static final String KEY_SEX = "sex";
    public static final String KEY_SIGNATURE = "signature";
    public static final String KEY_BIRTH = "birth";
    public static final String KEY_ATTENTION_NUM = "attention_num";
    public static final String KEY_SUBSCRIBE_NUM = "subscribe_num";
    public static final String KEY_COLLECT_NUM = "collect_num";
    public static final String KEY_FANS_NUM = "fans_num";
    public static final String KEY_TOPIC_NUM = "topic_num";
    public static final String KEY_SIGN = "sign";
    public static final String KEY_TOPIC_LIST = "topicList";
    public static final String KEY_LIST = "list";
    public static final String KEY_COLLECT_LIST = "collectList";
    public static final String KEY_ATTENTION_USER_LIST = "attentionUserList";
    public static final String KEY_COMMENT = "comment";
    public static final String KEY_MEMBER_LIST = "memberList";
    public static final String KEY_INFORMATION_LIST = "informationList";
    public static final String KEY_COMPETE_LOGO = "compete_logo";
    public static final String KEY_ISATTENTION = "isAttention";
    /**
     * 评论条数
     */
    public static final String KEY_COMMENTNUM = "comment_num";
    /**
     * 评论主键
     */
    public static final String KEY_COMMENT_ID = "commentId";
    /**
     * 电竞社主键
     */
    public static final String KEY_FORK_ID = "fork_id";
    /**
     * 图片地址列表
     */
    public static final String KEY_PHOTO = "photo";

    /**
     * 截图拼接字符串
     */
    public static final String KEY_SCREEN_SHOT = "screen_shot";

    /**
     * 关看次数
     */
    public static final String KEY_CLICKNUM = "click_num";
    /**
     * 帖子标题
     */
    public static final String KEY_T_TITLE = "t_title";
    /**
     * 帖子主键
     */
    public static final String KEY_TOPIC_ID = "topicId";
    /**
     * 期望标签
     */
    public static final String KEY_GENRE_TAG = "genreTag";
    /**
     * 点赞次数
     */
    public static final String KEY_THUMBNUM = "thumb_num";
    /**
     * 游戏标签
     */
    public static final String KEY_GAME_TAG = "gameTag";
    /**
     * 分享次数
     */
    public static final String KEY_SHARE_NUM = "share_num";
    public static final String KEY_TEAM_ID = "team_id";
    public static final String KEY_CLIENTUSER_ID = "clientuser_id";
    public static final String KEY_UNIVERSITYCLUB_ID = "universityclub_id";
    public static final String KEY_UNIVERSITY_NAME = "university_name";
    public static final String KEY_CIRCLE_LOGO = "circle_logo";

    public static final String KEY_HX_NICK_NAME = "hxNickname";
    public static final String KEY_HX_PASSWORD = "hxPassword";
    public static final String KEY_ID = "id";
    public static final String VALUE_NATION_CODE = "86";

    public static final String KEY_USER_NAME = "userName";
    public static final String KEY_FIRST_LAUNCH = "firstLaunch";
    public static final String KEY_DATA = "data";
    public static final String KEY_GENRE = "genre";

    public static final String KEY_CONTACT = "contact";
    public static final String KEY_MESSAGE = "message";
    public static final String KEY_LIST_LOGO = "list_logo";
    public static final String KEY_UNIVERSITY_COLLEGE_NAME = "universityName";

    /**
     * 是否是赛事创建者  0 不是 1 是
     */
    public static final String KEY_IS_CREATOR = "isCreator";

    /**
     * 我的赛事名称
     */
    public static final String KEY_COMPETENAME = "competename";

    /**
     * 我的赛事ID
     */
    public static final String KEY_COMPET_ID = "compet_id";

    /**
     * 我的赛事状态
     */
    public static final String KEY_COURSE = "course";

    /**
     * 赛事类型主键
     */
    public static final String KEY_MATCH_TYPE = "match_type";

    /**
     * 举办方式主键
     */
    public static final String KEY_MATCH_CREATE_TYPE = "match_create_type";

    /**
     * 参赛方式主键
     */
    public static final String KEY_MATCH_ENTER_TYPE = "match_enter_type";
    /**
     * 关注对象的类型 0 用户 1 战队 2 电竞社
     */
    public static final String KEY_ATTENTION_MODEL = "model";
    /**
     * 关注 用户
     */
    public static final String VALUE_ATTENTION_USER = "0";
    /**
     * 关注战队
     */
    public static final String VALUE_ATTENTION_TEAM = "1";
    /**
     * 关注电竞社
     */
    public static final String VALUE_ATTENTION_CLUB = "2";
    /**
     * 缓存路径
     * data/data/<包名>/cache/responses
     */
    public static final String CACHE_DIR = "responses";

    /**
     * 缓存大小10M
     */
    public static final int CACHE_SIZE = 10 * 1024 * 1024;

    /**
     * 缓存1天
     */
    public static final int CACHE_DAYS = 60 * 60 * 24 * 1;


    //token 过期标志
    public static final String TOKEN_INVALID = "token不存在或时间已过期，请重新登录";
    /***
     * 文件共享
     */
    public static final String FILE_PROVIDER = "androidx.core.content.FileProvider";
    public static final String APP_GET_ORDER_WORDS_API_TEST = BuildConfig.SERVER_ADDRESS + ApiEnum.APP_GET_ORDER_WORDS_API.getUrl();
    public static final String APP_ALL_INFORMATION_API_TEST = BuildConfig.SERVER_ADDRESS + ApiEnum.APP_ALL_INFORMATION_API.getUrl();
    public static final String APP_GET_GAME_API_TEST = BuildConfig.SERVER_ADDRESS + ApiEnum.APP_GET_GAME_API.getUrl();
    /**
     * 默认值
     */
    private static final String UNKNOWN = "unknown";
    /**
     * Header
     * value
     * 用IMEI号
     * 因为这个值在每个手机情况不一样，有的手机可能获取不到这个值
     */
    public static String HEADER_DID_VALUE = UNKNOWN;

    public static String getUrl() {
        return BuildConfig.SERVER_ADDRESS;
    }

    /**
     * OSS原图
     */
    public static final String OSS_IMG_SHARPEN = "?x-oss-process=style/sharpen";
    /**
     * OSS 130 宽高缩略图 logo
     */
    public static final String OSS_IMG_SCREEN_SHOT = "?x-oss-process=style/screen_shot";
    /**
     * OSS 300宽高 缩略图 资讯,帖子列表
     */
    public static final String OSS_IMG_SCREEN_TOPIC = "";

}
